//
//  OBlock.m
//  Tetris
//
//  Created by Wei Yeh, Evelyn Yung on 5/6/09.
//

#import "TetrisController.h"

@implementation OBlock
-(id)initAtY:(unsigned int)y x:(unsigned int)x check:(bool)check
{	
	if (![super initAtY:y x:x check:check]) return nil;
	
	myColor = [NSColor orangeColor];
	[myCells addObject:[myBoard cellAtY:y x:x]];
	[myCells addObject:[myBoard cellAtY:y x:x+1]];
	[myCells addObject:[myBoard cellAtY:y-1 x:x]];
	[myCells addObject:[myBoard cellAtY:y-1 x:x+1]];
	
	return self;
}

@end
